package com.kly.chatter.api.application.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.stereotype.Component;

@Component
public class NacosValueConfig {

    @NacosValue(value = "${server.test:false}", autoRefreshed = true)
    private boolean isServerTest;

    @NacosValue(value = "${platform.chat.list.news:}", autoRefreshed = true)
    private String platformChatListNews;

    @NacosValue(value = "${clean.cache.tips.switch}", autoRefreshed = true)
    private boolean cleanCacheTipsSwitch;

    @NacosValue(value = "${clean.cache.tips}", autoRefreshed = true)
    private String cleanCacheTips;

    public boolean isServerTest() {
        return isServerTest;
    }

    public String platformChatListNews() {
        return platformChatListNews;
    }

    public boolean cleanCacheTipsSwitch() {
        return cleanCacheTipsSwitch;
    }

    public String cleanCacheTips() {
        return cleanCacheTips;
    }
}
